//
//  FourViewController.m
//  07-homeWork周末作业
//
//  Created by 402030900@qq.com on 16/7/22.
//  Copyright © 2016年 402030900@qq.com. All rights reserved.
//

#import "FourViewController.h"
#import "LoginViewController.h"

@interface FourViewController ()

@end

@implementation FourViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view .backgroundColor = [UIColor whiteColor];
    UIButton * button = [UIButton buttonWithType:(UIButtonTypeSystem)];
    [button setFrame:CGRectMake(100, 100, 175, 50)];
    button.backgroundColor = [UIColor cyanColor];
    [self.view addSubview:button];
    [button setTitle:@"登录" forState:(UIControlStateNormal)];
    [button addTarget:self action:@selector(clickLoginButton:) forControlEvents:(UIControlEventTouchUpInside)];

    // Do any additional setup after loading the view.
}
-(void)clickLoginButton:(UIButton *)button {
    LoginViewController * loginVC = [[LoginViewController alloc] init];
    [self presentViewController:loginVC animated:YES completion:nil];

}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
